/*
 * @Description:
 * @Author: liyuhao
 * @Date: 2021-08-09 11:21:02
 * @LastEditors: liyuhao
 * @LastEditTime: 2022-04-28 15:46:51
 */
import { LibraryLevelEnum, LibraryTypeEnum } from './enum.ts'
import CreateEnumMap from '@/utils/CreateEnumMap.ts'

export const LibraryLevelMap = CreateEnumMap([
  {
    id: LibraryLevelEnum.NotRated,
    name: '未评级'
  },
  {
    id: LibraryLevelEnum.One,
    name: '一级'
  },
  {
    id: LibraryLevelEnum.Two,
    name: '二级'
  },
  {
    id: LibraryLevelEnum.Three,
    name: '三级'
  }
])

export const LibraryTypeMap = CreateEnumMap([
  {
    id: LibraryTypeEnum.Fg,
    name: '分馆'
  },
  {
    id: LibraryTypeEnum.Cssf,
    name: '城市书房'
  },
  {
    id: LibraryTypeEnum.Gj,
    name: '国家图书馆'
  },
  {
    id: LibraryTypeEnum.Gg,
    name: '公共图书馆'
  },
  {
    id: LibraryTypeEnum.Xx,
    name: '学校图书馆'
  },
  {
    id: LibraryTypeEnum.Kx,
    name: '科学图书馆'
  },
  {
    id: LibraryTypeEnum.Zy,
    name: '专业图书馆'
  },
  {
    id: LibraryTypeEnum.Tech,
    name: '技术图书馆'
  },
  {
    id: LibraryTypeEnum.Gh,
    name: '工会图书馆'
  },
  {
    id: LibraryTypeEnum.Js,
    name: '军事图书馆'
  },
  {
    id: LibraryTypeEnum.Et,
    name: '儿童图书馆'
  },
  {
    id: LibraryTypeEnum.Mr,
    name: '盲人图书馆'
  },
  {
    id: LibraryTypeEnum.Ssmz,
    name: '少数民族图书馆'
  }
])
